package com.pzhu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.pzhu.model.help.BaseEntity;
import lombok.Data;

/**
 * 优惠卷表
 * @TableName hs_coupon
 */
@TableName(value ="hs_coupon")
@Data
public class Coupon extends BaseEntity implements Serializable {
    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 套餐ID
     */
    @TableField(value = "thali_id")
    private Long thaliId;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 优惠卷编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 优惠折扣金额
     */
    @TableField(value = "discount")
    private BigDecimal discount;

    /**
     * 消费超过多少可用
     */
    @TableField(value = "consume_pass")
    private BigDecimal consumePass;

    /**
     * 优惠券过期时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 描述内容
     */
    @TableField(value = "mark")
    private String mark;

    /**
     * 是否被使用
     */
    @TableField(value = "is_used")
    private Integer isUsed;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}